package com.choosefine.base.shixiaobao.basedata.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.choosefine.base.shixiaobao.base.BaseService;
import com.choosefine.base.shixiaobao.basedata.dao.AttendanceCompanyMapper;
import com.choosefine.base.shixiaobao.basedata.model.AttendanceCompany;
import com.choosefine.base.shixiaobao.common.exception.BusinessException;

/**
 * Comments：考勤-公司详情
 * Author：xiongchao
 * Create Date：Jul 26, 2017
 * Modified By：
 * Modified Date：
 * Why & What is modified：
 * Version：v1.0
 */
@Service("AttendanceCompanyService")
public class AttendanceCompanyService extends BaseService {
	@Autowired
	AttendanceCompanyMapper attendanceCompanyMapper;
	
	public int insert(AttendanceCompany attendanceCompany) throws BusinessException {
		//if (attendanceCompany.get)
		int num = attendanceCompanyMapper.insert(attendanceCompany);
		return num;
	} 
	
	public int update(AttendanceCompany attendanceCompany) throws BusinessException {
		return attendanceCompanyMapper.updateByPrimaryKeySelective(attendanceCompany);
	}
}
